<template>
  <avue-form :option="option"
             v-model="form"
             :upload-delete="uploadDelete">
  </avue-form>
</template>

<script>
export default {
  data () {
    return {
      form: {
        imgUrl3: ['/images/logo-bg.jpg'],
      },
      option: {
        column: [
          {
            label: '水印头像',
            prop: 'imgUrl3',
            type: 'upload',
            listType: 'picture-card',
            span: 24,
            propsHttp: {
              res: 'data'
            },
            action: 'https://api.avuejs.com/imgupload'
          }
        ]
      }
    }
  },
  methods: {
    uploadDelete (file, column) {
      console.log(file, column)
      return this.$confirm('这里是自定义的，是否确定移除该选项？');
    },
  }
}
</script>